Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c
authorRichard Hult <richard@imendio.com>
Mon, 29 Sep 2008 10:41:07 +0000 (10:41 +0000)
committerRichard Hult <rhult@src.gnome.org>
Mon, 29 Sep 2008 10:41:07 +0000 (10:41 +0000)
2008-09-29  Richard Hult  <richard@imendio.com>

Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c

* gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
Patch from Jon A. Cruz to initialize the allocated selection data.

svn path=/trunk/; revision=21540

ChangeLog
gtk/gtkclipboard-quartz.c

index a0a0b3167438fcba281d810c6adebbd2fd9efa67..56de2dcfc95a6915a1d514878bf04201cb1b73f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-09-29  Richard Hult  <richard@imendio.com>
+
+       Bug 554141 – uninitialized data use/free in gtkclipboard-quartz.c
+
+       * gtk/gtkclipboard-quartz.c: (gtk_clipboard_wait_for_contents):
+       Patch from Jon A. Cruz to initialize the allocated selection data.
+
 2008-09-27  Matthias Clasen  <mclasen@redhat.com>
 
        Bug 339367 – Incorrect spotlocation
index 2a8b7ac282435d5a7d5b1b7af2c96a994fa59683..bc003bcd3e561229fd32fd1928404a9575035d4b 100644 (file)
@@ -890,7 +890,7 @@ gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
 
       length = [types count] * sizeof (GdkAtom);
       
-      selection_data = g_slice_new (GtkSelectionData);
+      selection_data = g_slice_new0 (GtkSelectionData);
       selection_data->selection = clipboard->selection;
       selection_data->target = target;